from sqlalchemy.orm import Session

from crud import EmploymentAdminCrud
from schema.TeachingSchema import EmploymentInfo


class EmploymentAdminController:

    @staticmethod
    def add_employment(employmentInfo: EmploymentInfo, db: Session):
        return EmploymentAdminCrud.add_employment(employmentInfo, db)

    @staticmethod
    def mod_employment(employmentInfo: EmploymentInfo, db: Session):
        return EmploymentAdminCrud.mod_employment(employmentInfo, db)

    @staticmethod
    def query_employment_by_student_id(student_id: int, db: Session):
        return EmploymentAdminCrud.query_employment_by_student_id(student_id, db)

    @staticmethod
    def query_employment_by_page(query_base, db: Session):
        return EmploymentAdminCrud.query_employment_by_page(query_base, db)
